import http from "@/http/index.ts"
import {UserLogin} from '@/api/auth/type.ts'
// 获取验证码
export const getVerifyCodeApi = () => {
    return http.get("/acl/captcha")
}

// 登录
export const loginApi = (data: UserLogin) => {
    return http.post("/acl/login", data)
}

// 退出登录
export const logoutApi = () => {
    return http.post("/acl/logout")
}

// 获取用户信息
export const getUserInfoApi = () => {
    return http.get("/acl/info")
}


// 获取用户个人中心信息
export const getUserCenterApi = () => {
    return http.get("/acl/userCenter")
}
